//侧边栏
var srs = $("#sidebar").find("li");
for(var i =0;i<srs.length;i++){
	srs[i].onmouseover = function(){
	$(this).children("p").css("color","#ff6600");
	$(this).children("i").css("color","#ff6600");
    };
	srs[i].onmouseout = function(){
	$(this).children("p").css("color","");
	$(this).children("i").css("color","");
	};
}
// 返回顶部
$(function() {
	var d_top = $("#rn");
	document.onscroll = function() {
		var scrTop = (document.body.scrollTop || document.documentElement.scrollTop);
		if (scrTop > 900) {
			d_top.show();
		} else {
			d_top.hide();
		}
	}
	$("#rn").click(function() {
		scrollTo(0, 0);
		this.blur();
		return false;
	});
});
$("#sidebar-li").click(function(){
	location.href = "spcar.html";
});
